package com.fesine.scheduler.jobs;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/11/15 14:13
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/11/15 14:13
 */
@Component("myBean")
public class MyBean {

    public void printMessage() {
        System.out.println(new SimpleDateFormat("yyy-MM-dd HH:mm:ss").format(new Date()) +
                ",通过MethodInvokingJobDetailFactoryBean 调用，通过 " +
                "SimpleTriggerFactoryBean 触发");
    }
}
